
class OilExpansionpanleModel{

  String license;//车拍
  int oiladdCount;//加油次数
  bool isChange;
  List<ExpansionpanleData> data;

  OilExpansionpanleModel({this.license, this.data, this.isChange,this.oiladdCount});

  OilExpansionpanleModel.fromJson(Map<String, dynamic> json) {
    license = json['license'];
    oiladdCount=json['oiladdCount'];
    if (json['data'] != null) {
      data = new List<ExpansionpanleData>();(json['data'] as List).forEach((v) { data.add(new ExpansionpanleData.fromJson(v)); });
    }
    isChange = json['isChange'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['license'] = this.license;
    data['oiladdCount']=this.oiladdCount;
    if (this.data != null) {
      data['data'] =  this.data.map((v) => v.toJson()).toList();
    }
    data['isChange'] = this.isChange;
    return data;
  }
}

class ExpansionpanleData {
  String timeDate;//时间
  String oilType;//油型号
  String address;

  ExpansionpanleData({this.timeDate, this.oilType,this.address});

  ExpansionpanleData.fromJson(Map<String, dynamic> json) {
    timeDate = json['timeDate'];
    oilType = json['oilType'];
    address = json['address'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['timeDate'] = this.timeDate;
    data['oilType'] = this.oilType;
    data['address'] = this.address;
    return data;
  }
}